<?php $this->headTitle($typeName); ?>
<div class="wrap">
    <div class="header">
        <?php echo $this->partial('header'); ?>	     
        <div class="header_slide">
            <div class="header_bottom_left">				
                <?php echo $this->partial('product-ajax/category'); ?>				
            </div>
            <div class="header_bottom_right">					 
                <?php echo $this->partial('slider'); ?>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="main">
        <div class="content">
            <?php if (isset($aryProduct[0])) { ?>
                <div class="content_top">
                    <div class="heading">
                        <h3><?php echo $typeName; ?></h3>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="section group">
                    <?php foreach ($aryProduct as $key => $product) { ?>
                        <div class="grid_1_of_4 images_1_of_4 <?php echo ($key % 4 == 0) ? 'no-margin' : '' ?>">
                            <a href="<?php echo $this->url('product/product-detail', array('product_id' => $product['product_id'], 'product_name' => $product['product_name_filter'] . '.html')); ?>">
                                <img alt="<?php echo $product['product_name']; ?>" src="/upload/images/thumb/<?php echo $product['product_image']; ?>">
                            </a>
                            <h2><a href="<?php echo $this->url('product/product-detail', array('product_id' => $product['product_id'], 'product_name' => $product['product_name_filter'] . '.html')); ?>"><?php echo $product['product_name']; ?></a></h2>
                            <div class="price-details">
                                <?php if ($product['product_price_sale_of']) { ?>
                                    <div class="price-number">
                                        <p><span class="rupees"><?php echo number_format($product['product_price_sale_of'], 0, ',', '.') ?>₫</span></p>
                                    </div>
                                    <div class="add-cart">								
                                        <h4><a><?php echo number_format($product['product_price'], 0, ',', '.') ?>₫</a></h4>
                                    </div>
                                <?php } else { ?>
                                    <div class="add-cart">								
                                        <h4><a><?php echo number_format($product['product_price'], 0, ',', '.') ?>₫</a></h4>
                                    </div>
                                <?php } ?>
                                <div class="clear"></div>
                            </div>
                        </div>
                    <?php } ?>
                </div>
            <?php } ?>
        </div>
    </div>
</div>
